<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('修改')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-pay-edit" th:object="${pay}">
            <input id="id" name="id" th:field="*{id}"  type="hidden">
			<div class="form-group">	
				<label class="col-sm-3 control-label">编号：</label>
				<div class="col-sm-8">
					<input id="code" name="code" th:field="*{code}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">渠道编号：</label>
				<div class="col-sm-8">
					<input id="chCode" name="chCode" th:field="*{chCode}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">商户编号：</label>
				<div class="col-sm-8">
					<input id="mchCode" name="mchCode" th:field="*{mchCode}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">金额：</label>
				<div class="col-sm-8">
					<input id="fee" name="fee" th:field="*{fee}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">渠道金额：</label>
				<div class="col-sm-8">
					<input id="chFee" name="chFee" th:field="*{chFee}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">商户金额：</label>
				<div class="col-sm-8">
					<input id="mchFee" name="mchFee" th:field="*{mchFee}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">财务金额：</label>
				<div class="col-sm-8">
					<input id="finFee" name="finFee" th:field="*{finFee}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">开始时间：</label>
				<div class="col-sm-8">
					<input id="begin" name="begin" th:field="*{begin}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">结束时间：</label>
				<div class="col-sm-8">
					<input id="end" name="end" th:field="*{end}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">交易状态：0未付款，1已付款，2付款失败：</label>
				<div class="col-sm-8">
					<input id="status" name="status" th:field="*{status}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">：</label>
				<div class="col-sm-8">
					<input id="merchantMethodId" name="merchantMethodId" th:field="*{merchantMethodId}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">：</label>
				<div class="col-sm-8">
					<input id="merchantId" name="merchantId" th:field="*{merchantId}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">商户支付费率（以万记，比如1表示费率0.01%，10表示0.1%，100表示1%）：</label>
				<div class="col-sm-8">
					<input id="merchantPayRate" name="merchantPayRate" th:field="*{merchantPayRate}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">：</label>
				<div class="col-sm-8">
					<input id="merchantName" name="merchantName" th:field="*{merchantName}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">：</label>
				<div class="col-sm-8">
					<input id="merchantCode" name="merchantCode" th:field="*{merchantCode}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">：</label>
				<div class="col-sm-8">
					<input id="channelMethodId" name="channelMethodId" th:field="*{channelMethodId}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">上游支付费率（以万记，比如1表示费率0.01%，10表示0.1%，100表示1%）：</label>
				<div class="col-sm-8">
					<input id="channelMethodPayRate" name="channelMethodPayRate" th:field="*{channelMethodPayRate}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">上游代付手续费：</label>
				<div class="col-sm-8">
					<input id="channelMethodWithdrawalFee" name="channelMethodWithdrawalFee" th:field="*{channelMethodWithdrawalFee}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">下游代付费费：</label>
				<div class="col-sm-8">
					<input id="channelMchWithdrawalFee" name="channelMchWithdrawalFee" th:field="*{channelMchWithdrawalFee}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">：</label>
				<div class="col-sm-8">
					<input id="channelId" name="channelId" th:field="*{channelId}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">：</label>
				<div class="col-sm-8">
					<input id="channelName" name="channelName" th:field="*{channelName}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">：</label>
				<div class="col-sm-8">
					<input id="channelCode" name="channelCode" th:field="*{channelCode}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">：</label>
				<div class="col-sm-8">
					<input id="payKindId" name="payKindId" th:field="*{payKindId}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">：</label>
				<div class="col-sm-8">
					<input id="payKindName" name="payKindName" th:field="*{payKindName}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">：</label>
				<div class="col-sm-8">
					<input id="payKindCode" name="payKindCode" th:field="*{payKindCode}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">：</label>
				<div class="col-sm-8">
					<input id="walletKindId" name="walletKindId" th:field="*{walletKindId}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">：</label>
				<div class="col-sm-8">
					<input id="walletKindName" name="walletKindName" th:field="*{walletKindName}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">：</label>
				<div class="col-sm-8">
					<input id="walletKindCode" name="walletKindCode" th:field="*{walletKindCode}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">回调地址：</label>
				<div class="col-sm-8">
					<input id="callbackUrl" name="callbackUrl" th:field="*{callbackUrl}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">跳转地址：</label>
				<div class="col-sm-8">
					<input id="redirectUrl" name="redirectUrl" th:field="*{redirectUrl}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">渠道回调状态：</label>
				<div class="col-sm-8">
					<input id="channelNotifyStatus" name="channelNotifyStatus" th:field="*{channelNotifyStatus}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">商户回调状态：</label>
				<div class="col-sm-8">
					<input id="merchantNotifyStatus" name="merchantNotifyStatus" th:field="*{merchantNotifyStatus}" class="form-control" type="text">
				</div>
			</div>
		</form>
    </div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "transaction/pay";
		$("#form-pay-edit").validate({
			rules:{
				xxxx:{
					required:true,
				},
			},
			focusCleanup: true
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/edit", $('#form-pay-edit').serialize());
	        }
	    }
	</script>
</body>
</html>
